/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cognitivetouch.colorSpan;

import org.lwjgl.opengl.GL11;

/**
 *
 * @author Xiaoxing
 */
public class Feedback {

//    final static float radius = 20;
    public static void render(boolean correct) {

        if (correct) {
            GL11.glLineWidth(10.0f);
            GL11.glBegin(GL11.GL_LINES);


            /* set cell colors */
            GL11.glColor3f(0f, 0.8f, 0f);

            GL11.glVertex2f(900f, 580f);
            GL11.glVertex2f(960f, 540f);

            GL11.glVertex2f(960f, 540f);
            GL11.glVertex2f(1060f, 680f);

            GL11.glEnd();
        } else {
            GL11.glLineWidth(10.0f);
            GL11.glBegin(GL11.GL_LINES);


            /* set cell colors */
            GL11.glColor3f(0.8f, 0f, 0f);

            GL11.glVertex2f(860f, 640f);
            GL11.glVertex2f(1060f, 440f);

            GL11.glVertex2f(1060f, 640f);
            GL11.glVertex2f(860f, 440f);

            GL11.glEnd();
        }

    }
}
